package com.crishne.anwo.dao;
 
import java.util.List;

import com.crishne.anwo.model.Role;
import com.crishne.anwo.utill.PaginationUtil;
 
 
public interface RoleDao {
 
    /**
     * 添加角色
     * @param Role
     * @return
     */
    public void addRole(Role role);
    
    //根据ID查询信息  
    public Role selectRoleById(String id); 
    
    //根据ID查询信息  
    public Role selectRoleByName(String stRoleName);
    
    //根据查询条件字符串信息  
    public List<Role> getAllRoles();
    
    //根据查询条件进行分页查询  
    public List<Role> searchRoles(PaginationUtil<Role> pageConditions);
    
    //根据查询条件进行分页查询  
    public int getTotalResult(PaginationUtil<Role> pageConditions);
    
    //删除信息  
    public void deleteRole(String id);  
    
    //修改信息  
    public void updateRole(Role role); 

     
     
}